<?php

session_start();
if (isset($_SESSION['is_logedin'])) {
//redirect to dashboard
    header("Location: dashboard.php");
    die();
} else {
//redirect to login page
    header("Location: auth.php");
    die();
}
?>